package com.hdax.dm.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hdax.dm.entity.item.DmCinema;
import com.hdax.dm.mappers.CinemaMapper;
import com.hdax.dm.service.CinemaService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CinemaSImpl extends ServiceImpl<CinemaMapper, DmCinema> implements CinemaService {

    @Override
    public DmCinema cinemaOne(Long id) {
        QueryWrapper<DmCinema> wrapper=new QueryWrapper<>();
        wrapper.eq("id",id);
        return getOne(wrapper);
    }
}
